package com.tbit.main.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tbit.main.dao.core.PerformanceRuleDao;
import com.tbit.main.pojo.PerformanceRule;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;

/**
 * @author <a href="mailto:zheng.zebiao@tbit.com.cn">zb</a>
 * @since 2025/2/18
 */
@Slf4j
@Service
@AllArgsConstructor
public class PerformanceRuleService extends ServiceImpl<PerformanceRuleDao, PerformanceRule> {
    @Override
    public boolean removeById(Serializable id) {
        log.info("[运维绩效规则] 移除id: {}", id, new Exception());
        return super.removeById(id);
    }

    @Override
    public boolean removeByIds(Collection<?> list) {
        log.info("[运维绩效规则] 移除id列表: {}", list, new Exception());
        return super.removeByIds(list);
    }

    @Override
    public boolean removeById(Serializable id, boolean useFill) {
        log.info("[运维绩效规则] 移除id: {}, useFill: {}", id, useFill, new Exception());
        return super.removeById(id, useFill);
    }

    @Override
    public boolean removeBatchByIds(Collection<?> list, int batchSize) {
        log.info("[运维绩效规则] 移除id列表: {}, 批次数量: {}", list, batchSize, new Exception());
        return super.removeBatchByIds(list, batchSize);
    }

    @Override
    public boolean removeBatchByIds(Collection<?> list, int batchSize, boolean useFill) {
        log.info("[运维绩效规则] 移除id列表: {}, 批次数量: {}, useFill: {}", list, batchSize, useFill, new Exception());
        return super.removeBatchByIds(list, batchSize, useFill);
    }
}
